package com.longge;

public class CountOperations {

    int ans = 0;

    public int countOperations(int num1, int num2) {

        if (num1 == 0 || num2 == 0) return ans;
        if (num1 >= num2) {
            num1 -= num2;
        } else {
            num2 -= num1;
        }
        ans++;
        return countOperations(num1, num2);
    }
}
